using System;
using System.Collections.Generic;

namespace Viettel.VOFFICE.DAO.Models
{
    public class v_Department
    {
        public v_Department()
        {
            this.Books = new List<Book>();
            this.Flows = new List<Flow>();
            this.v_Department1 = new List<v_Department>();
            this.v_UsersInDepartment = new List<v_UsersInDepartment>();
            this.aspnet_Roles = new List<aspnet_Roles>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public int Node { get; set; }
        public Nullable<int> ParentId { get; set; }
        public Nullable<bool> IsActive { get; set; }
        public string OfficeCode { get; set; }
        public System.DateTime CreatedAt { get; set; }
        public System.DateTime UpdatedAt { get; set; }
        public Nullable<System.Guid> CreatorId { get; set; }
        public virtual ICollection<Book> Books { get; set; }
        public virtual ICollection<Flow> Flows { get; set; }
        public virtual ICollection<v_Department> v_Department1 { get; set; }
        public virtual v_Department v_Department2 { get; set; }
        public virtual ICollection<v_UsersInDepartment> v_UsersInDepartment { get; set; }
        public virtual ICollection<aspnet_Roles> aspnet_Roles { get; set; }
    }
}
